package com.victor.service;

import java.util.HashMap;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.victor.entity.city.CityCenterLocation;
import com.victor.entity.collection.JqCollection;
import com.victor.entity.jingqu.Jingdianintroduce;
import com.victor.entity.jingqu.Jingdiantupian;
import com.victor.entity.jingqu.Jingquclass;
import com.victor.entity.jingqu.Jingqujingdian;
import com.victor.entity.jingqu.Jingqulist;
import com.victor.entity.jingqu.JingquticketIntroduce;
import com.victor.entity.jingqu.Jingqutupian;
import com.victor.entity.praise.JqcommentPraise;
public interface JingquService {

	/**
	 * 获取所有景区类别
	 * 
	 * @return
	 */
	public List<Jingquclass> getClassList();

	/**
	 * 添加景区类型
	 * 
	 * @return
	 */
	public boolean addClass(Jingquclass jingquclass);

	/**
	 * 修改类别信息
	 * 
	 * @return
	 */
	public boolean updateClass(Jingquclass jingquclass);

	/**
	 * 删除类别
	 * 
	 * @param cid
	 * @return
	 */
	public boolean deleteClass(int[] cids);

	/**
	 * 获取景区列表
	 * 
	 * @param jqclass    景区类型
	 * @param starttime
	 * @param endtime
	 * @param searchname
	 * @return
	 */
	public List<Jingqulist> getJQlist(String jqclassid, String starttime, String endtime, String searchname);

	/**
	 * 新建景区--添加景区信息
	 * 
	 * @param jingqulist
	 * @return
	 */
	public boolean buildJQ(Jingqulist jingqulist);

	/**
	 * 添加景区图片信息
	 * 
	 * @param jingqutupian
	 */
	public boolean addJingqutupian(Jingqutupian jingqutupian);

	/**
	 * 批量删除
	 * 
	 * @param jqids
	 * @return
	 */
	public boolean batchDeleteJQ(int[] jqids);

	/**
	 * 景区详情
	 * 
	 * @param jqid
	 * @return
	 */
	public Jingqulist getJQxqByid(String jqid);

	/**
	 * 修改景区信息
	 * 
	 * @param jingqulist
	 * @return
	 */
	public boolean updateJQ(Jingqulist jingqulist);

	/**
	 * 添加景点
	 * 
	 * @param jingqujingdian
	 * @return
	 */
	public boolean addJingdian(Jingqujingdian jingqujingdian);

	/**
	 * 添加景点图片
	 * 
	 * @param jingdiantupian
	 */
	public boolean addJingdiantupian(Jingdiantupian jingdiantupian);

	/**
	 * 删除景点
	 * 
	 * @param jdid
	 * @return
	 */
	public boolean deleteJingdianByid(String jdid);

	/**
	 * 添加景点简介
	 * 
	 * @param jingdianintroduce
	 * @return
	 */
	public boolean addJdintroduce(Jingdianintroduce jingdianintroduce);

	/**
	 * 修改景点
	 * 
	 * @param jingqujingdian
	 * @return
	 */
	public boolean updateJD(Jingqujingdian jingqujingdian);

	/**
	 * 删除景点原图片
	 * 
	 * @param id
	 */
	public boolean deleteJingdianTup(Integer jdid);

	/**
	 * 删除景点原简介
	 * 
	 * @param jdid
	 * @return
	 */

	public boolean deleteJingdianJJ(Integer jdid);
	/**
	 * 景区list
	 * @return
	 */
	public PageInfo<Jingqulist> getJingquListAll(int page, int row);
	/**
	 * 根据省，市，搜索条件查找
	 * @param map
	 * @return
	 */
	public PageInfo<Jingqulist> selByCondition(HashMap<Object, Object> map,int page,int row);
	/**
	 * 删除景区list
	 * @param ids
	 * @return
	 */
	public int deleteList(int[] ids);
	/**
	 * 查询独立景区全部
	 * @return
	 */
	public List<Jingqulist> getAllListNopageandrow();
	/**
	 * app景区详情(没登陆)
	 * @param jqid
	 * @return
	 */
	public Jingqulist selByJqid(String jqid);
	/**
	 * app景区详情(登陆)
	 * @param jqid
	 * @param uid
	 * @return
	 */
	public Jingqulist selByJqidAndUid(String jqid, String uid);
	/**
	 * 景区首页列表
	 * @param city
	 * @param classid
	 * @param level
	 * @param area 
	 * @param search 
	 * @param location
	 * @param screening
	 * @param page
	 * @param row
	 * @return
	 */
	public PageInfo<Jingqulist> selMoreCondition( String search,String city, String classid, String level, String area, int page,
			int row,String mylon,String mylat);
	/**
	 * 根据城市查询
	 * @param city
	 * @return
	 */
	public List<Jingqulist> selByCity(String city);
	/**
	 * 查询全国所有城市
	 * @param city
	 * @return
	 */
	public CityCenterLocation selCenterCityByName(String city);
	/**
	 * 筛选
	 * @param screening
	 * @param city 
	 * @return
	 */
	public List<Jingqulist> selShaixuan(String screening, String city);
	/**
	 * 查询票须知
	 * @param id
	 * @return
	 */
	public JingquticketIntroduce selTicketIntroduceByTid(String id);
	

}
